package com.health.dao;

import com.github.pagehelper.Page;
import com.health.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberMapper {
    Integer findMemberId(String phoneNumber);

    void add(Member member);

    Map<String, Object> findMemberReport();

    List<Integer> findCountByDate(@Param("firstDay") String firstDay,@Param("arr") int[] arr);

    Page<Member> findByQuery(@Param("query") String query);

    int findCountInOrder(Integer id);

    int deleteById(Integer id);

    int addMember(Member member);

    Member findById(Integer id);

    int update(Member member);
}
